//package com.jsu.user.filter;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//import org.springframework.web.servlet.HandlerInterceptor;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//@Component
//@Slf4j
//public class UserInterceptor implements HandlerInterceptor {
//
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        log.info(request.toString());
//        // 获取请求头中的手机号
//        String phone = request.getHeader("phone");
//
//        log.info(phone);
//        if (phone != null) {
//            return false;
//        }
//        return true;
//    }
//}
